home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / emulations / 2508 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  8.9 KB

  1. Path: news1.channel1.com!usenet
  2. From: johnh@user1.channel1.com (John Herzfeld)
  3. Newsgroups: comp.sys.amiga.emulations
  4. Subject: Re: BridgeBoard Key-Codes
  5. Date: 7 Mar 1996 09:58:29 GMT
  6. Organization: Channel 1 Communications
  7. Message-ID: <8734.6640T599T1725@user1.channel1.com>
  8. References: <Bert_Allen.jkw4@sacbbx.com>
  9. NNTP-Posting-Host: remote39.channel1.com
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. >     Need HELP finding MISSING B-B Key-Codes  --  Some keys do not function
  13. >when running PC Programs (Like "Alt-Enter").
  14. >
  15. >     There are 2 Files in the PC/System/ Sub-Directory named;
  16. >
  17. >               ScanCode.Table  *and*  SidecarKeys.Table
  18. >               --------------         -----------------
  19. >
  20. >that 'Map' the 'PC-Keys' that the B-B uses  --  But *not* ALL 'Key-Codes'
  21. >have a 'Hex' value and therefore don't function as 'PC-Keys'.
  22. >
  23. >     I would like to 'Compare' the ones I have with what come with '286 and
  24. >'386 BridgeBoards  --  They are Both 'ASCII-Text' Files, so can be 'Sent'
  25. >as 'Message-Line' in a Return Message.
  26. >
  27. >     *Someone* PLEASE Help a *Fellow* BridgeBoard-er !!!
  28. >
  29. >     THANKS in Advance !!!
  30. >
  31.  
  32. Here is my Scancode.Table:
  33.  
  34. ;* **************************************************************************
  35. ;*
  36. ;* Ascii to Scancode Translation Table from the Amiga Keyboard to PC Windows
  37. ;* For the Zaphod Project
  38. ;*
  39. ;* Copyright (C) 1987, Commodore-Amiga, Inc.
  40. ;*
  41. ;* PROPRIETARY
  42. ;*
  43. ;* HISTORY     Name           Description
  44. ;* -------     ------------   --------------------------------------------
  45. ;* 13 Jan 87   =RJ Mical=     Created this file from the table in ascii2pc.c
  46. ;*
  47. ;* **************************************************************************
  48.  
  49. ; This file contains the definitions of the scancode combinations that
  50. ; must be sent to the PC in order to emulate the PC keyboard entry
  51. ; of ASCII characters.
  52. ;
  53. ; Each ASCII entry is comprised of two parts:  flags describing which
  54. ; control characters must be sent with the scancode; and the scancode.
  55. ; For example, to send a control-a, the control key must be sent along with
  56. ; the scancode for the letter a.  To send an uppercase-a, the shift key
  57. ; must be sent along with the scancode for 'a'.  A special case is
  58. ; control-NULL (precedes control-a), which is achieved by specifying
  59. ; the control key, the shift key and the scancode for '2'.
  60. ;
  61. ; To specify the control characters, use these flags:
  62. ;    $01 - Send the CONTROL scancode
  63. ;    $02 - Send the SHIFT scancode
  64. ;    $03 - For your reference, this means:  send both CONTROL and SHIFT
  65. ; If you want no control characters, specify $00 of course.
  66. ;
  67. ; These values are currently for the American keyboard.
  68.  
  69.  
  70.     $03,  3,    ; ^@
  71.  
  72.     $01, 30,    ; ^A
  73.     $01, 48,    ; ^B
  74.     $01, 46,    ; ^C
  75.     $01, 32,    ; ^D
  76.     $01, 18,    ; ^E
  77.     $01, 33,    ; ^F
  78.     $01, 34,    ; ^G
  79.     $01, 35,    ; ^H
  80.     $01, 23,    ; ^I
  81.     $01, 50,    ; ^J ??? Was equal to 36, now 50 for \n from Notepad
  82.     $01, 37,    ; ^K
  83.     $01, 38,    ; ^L
  84.     $01, 50,    ; ^M
  85.     $01, 49,    ; ^N
  86.     $01, 24,    ; ^O
  87.     $01, 25,    ; ^P
  88.     $01, 16,    ; ^Q
  89.     $01, 19,    ; ^R
  90.     $01, 31,    ; ^S
  91.     $01, 20,    ; ^T
  92.     $01, 22,    ; ^U
  93.     $01, 47,    ; ^V
  94.     $01, 17,    ; ^W
  95.     $01, 45,    ; ^X
  96.     $01, 21,    ; ^Y
  97.     $01, 44,    ; ^Z
  98.     $00,  1,    ; ESCAPE key
  99.     $00,  0,    ; ??? 28
  100.     $00,  0,    ; ??? 29
  101.     $00,  0,    ; ??? 30
  102.     $00,  0,    ; ??? 31
  103.  
  104.     $00, 57,    ; SPACE
  105.     $02,  2,    ; !
  106.     $02, 40,    ; "
  107.     $02,  4,    ; #
  108.     $02,  5,    ; $
  109.     $02,  6,    ; %
  110.     $02,  8,    ; &
  111.     $00, 40,    ; '
  112.     $02, 10,    ; (
  113.     $02, 11,    ; )
  114.     $02,  9,    ; *
  115.     $02, 13,    ; +
  116.     $00, 51,    ; ,
  117.     $00, 12,    ; -
  118.     $00, 52,    ; .
  119.     $00, 53,    ; /
  120.     $00, 11,    ; 0
  121.     $00,  2,    ; 1
  122.     $00,  3,    ; 2
  123.     $00,  4,    ; 3
  124.     $00,  5,    ; 4
  125.     $00,  6,    ; 5
  126.     $00,  7,    ; 6
  127.     $00,  8,    ; 7
  128.     $00,  9,    ; 8
  129.     $00, 10,    ; 9
  130.     $02, 39,    ; :
  131.     $00, 39,    ; ;
  132.     $02, 51,    ; <
  133.     $00, 13,    ; =
  134.     $02, 52,    ; >
  135.     $02, 53,    ; ?
  136.  
  137.     $02,  3,    ; @
  138.     $02, 30,    ; A
  139.     $02, 48,    ; B
  140.     $02, 46,    ; C
  141.     $02, 32,    ; D
  142.     $02, 18,    ; E
  143.     $02, 33,    ; F
  144.     $02, 34,    ; G
  145.     $02, 35,    ; H
  146.     $02, 23,    ; I
  147.     $02, 36,    ; J
  148.     $02, 37,    ; K
  149.     $02, 38,    ; L
  150.     $02, 50,    ; M
  151.     $02, 49,    ; N
  152.     $02, 24,    ; O
  153.     $02, 25,    ; P
  154.     $02, 16,    ; Q
  155.     $02, 19,    ; R
  156.     $02, 31,    ; S
  157.     $02, 20,    ; T
  158.     $02, 22,    ; U
  159.     $02, 47,    ; V
  160.     $02, 17,    ; W
  161.     $02, 45,    ; X
  162.     $02, 21,    ; Y
  163.     $02, 44,    ; Z
  164.     $00, 26,    ; [
  165.     $00, 43,    ; \
  166.     $00, 27,    ; ]
  167.     $02,  7,    ; ^
  168.     $02, 12,    ; _
  169.  
  170.     $00, 41,    ; `
  171.     $00, 30,    ; a
  172.     $00, 48,    ; b
  173.     $00, 46,    ; c
  174.     $00, 32,    ; d
  175.     $00, 18,    ; e
  176.     $00, 33,    ; f
  177.     $00, 34,    ; g
  178.     $00, 35,    ; h
  179.     $00, 23,    ; i
  180.     $00, 36,    ; j
  181.     $00, 37,    ; k
  182.     $00, 38,    ; l
  183.     $00, 50,    ; m
  184.     $00, 49,    ; n
  185.     $00, 24,    ; o
  186.     $00, 25,    ; p
  187.     $00, 16,    ; q
  188.     $00, 19,    ; r
  189.     $00, 31,    ; s
  190.     $00, 20,    ; t
  191.     $00, 22,    ; u
  192.     $00, 47,    ; v
  193.     $00, 17,    ; w
  194.     $00, 45,    ; x
  195.     $00, 21,    ; y
  196.     $00, 44,    ; z
  197.     $02, 26,    ; {
  198.     $02, 43,    ; |
  199.     $02, 27,    ; }
  200.     $02, 41,    ; ~
  201.  
  202.     $00, 14,    ; DEL key
  203.  
  204. Here is my Sidecarkeys.table
  205.  
  206.  
  207. ;* **************************************************************************
  208. ;*
  209. ;* Input Translation Table from the Amiga Keyboard to the Sidecar
  210. ;* For the Zaphod Project
  211. ;*
  212. ;* Copyright (C) 1986, 1987, 1988, Commodore-Amiga, Inc.
  213. ;*
  214. ;* CONFIDENTIAL and PROPRIETARY
  215. ;*
  216. ;* HISTORY     Name         Description
  217. ;* -------    ------       --------------------------------------------
  218. ;* 20 Mar 89   T.Burgdorff  Changed table for international AT keyboards
  219. ;* 24 Jul 88   =RJ=         Added cursor cases to end of file
  220. ;* 20 Mar 87   =RJ=         Made "final" adjustments
  221. ;* 27 Feb 87   R.Goedecke   Implemented German version
  222. ;* 14 Apr 86   =RJ Mical=   Created this file from the table in imtask.c
  223. ;*
  224. ;* **************************************************************************
  225.  
  226.  
  227.  
  228. ; This file starts with the special cases.
  229. ; These values are currently for the American keyboard.
  230.  
  231.   $38  ; The PC Alt code
  232.   $3A  ; The PC Caps Lock code
  233.   $1D  ; The PC Ctrl code
  234.   $2A  ; The PC Left Shift code
  235.   $45  ; The PC Num Lock code
  236.   $4E  ; The PC + (on the numeric keypad) code
  237.   $37  ; The PC Ptr Scr * code
  238.   $36  ; The PC Right Shift code
  239.   $46  ; The PC Scroll Lock code
  240.   $0D  ; The PC Tilde code
  241.   $08  ; The PC Bar code
  242.   $0C  ; The PC BackDash code
  243.   $2B  ; The PC BackSlash code
  244.  
  245.  
  246.   $62  ; The Amiga Caps Lock code
  247.   $64  ; The Amiga Left Alt code
  248.   $36  ; The Amiga N code
  249.   $19  ; The Amiga P code
  250.   $0C  ; The Amiga + code
  251.   $65  ; The Amiga Right Alt code
  252.   $21  ; The Amiga S code
  253.   $5D  ; The Amiga equivalent of the Prt Scr key
  254.   $FF  ; The Amiga TildeBackDash code ($FF for non-German, $00 for German)
  255.   $FF  ; The Amiga BarBackSlash code ($FF for non-German, $0D for German)
  256.  
  257.  
  258.  
  259. ; What follows next is the normal translation table, after all the
  260. ; special cases have been processed.  There are 128 entries in this
  261. ; byte table, which entries describe what to translate the normal
  262. ; Amiga keycodes into to satisfy the PC in this area.
  263. ;
  264. ; This table is currently known to be good for the American keyboard.
  265. ; If you are using a non-American keyboard, you should check this table.
  266.  
  267.     $29  $02  $03  $04   $05  $06  $07  $08   ; 00 - 07
  268.     $09  $0A  $0B  $0C   $0D  $2B  $FF  $D2   ; 08 - 0F
  269.     $10  $11  $12  $13   $14  $15  $16  $17   ; 10 - 17
  270.     $18  $19  $1A  $1B   $FF  $CF  $D0  $D1   ; 18 - 1F
  271.     $1E  $1F  $20  $21   $22  $23  $24  $25   ; 20 - 27
  272.     $26  $27  $28  $55   $FF  $CB  $CC  $CD   ; 28 - 2F
  273.     $56  $2C  $2D  $2E   $2F  $30  $31  $32   ; 30 - 37
  274.     $33  $34  $35  $FF   $D3  $C7  $C8  $C9   ; 38 - 3F
  275.     $39  $0E  $0F  $1C   $1C  $01  $53  $FF   ; 40 - 47
  276.     $FF  $FF  $4A  $FF   $48  $50  $4D  $4B   ; 48 - 4F
  277.     $3B  $3C  $3D  $3E   $3F  $40  $41  $42   ; 50 - 57
  278.     $43  $44  $45  $46   $54  $37  $4E  $46   ; 58 - 5F
  279.     $2A  $36  $3A  $1D   $38  $38  $FF  $FF   ; 60 - 67
  280.     $FF  $FF  $FF  $FF   $FF  $FF  $FF  $FF   ; 68 - 6F
  281.     $FF  $FF  $FF  $FF   $FF  $FF  $FF  $FF   ; 70 - 77
  282.     $FF  $FF  $FF  $FF   $FF  $FF  $FF  $FF   ; 78 - 7F
  283.  
  284.  
  285.   $52  ; The PC Numeric Keypad 0 key (insert key)
  286.   $4F  ; The PC Numeric Keypad 1 key (end key)
  287.   $50  ; The PC Numeric Keypad 2 key (down-cursor key)
  288.   $51  ; The PC Numeric Keypad 3 key (page-down key)
  289.   $4B  ; The PC Numeric Keypad 4 key (left-cursor key)
  290.   $4C  ; The PC Numeric Keypad 5 key
  291.   $4D  ; The PC Numeric Keypad 6 key (right-cursor key)
  292.   $47  ; The PC Numeric Keypad 7 key (home key)
  293.   $48  ; The PC Numeric Keypad 8 key (up-cursor key)
  294.   $49  ; The PC Numeric Keypad 9 key (page-up key)
  295.   $53  ; The PC Numeric Keypad Dot   (del key)
  296.  
  297.   $4C  ; The Amiga Up-Cursor code
  298.   $4F  ; The Amiga Left-Cursor code
  299.   $4E  ; The Amiga Right-Cursor code
  300.   $4D  ; The Amiga Down-Cursor code
  301.   $46  ; The Amiga DEL key
  302.  
  303.  
  304.  
  305. Hope this helps.  I have never tinkered with them.
  306.  
  307.